import open3d as o3d

'''用于可视化点云文件'''
# 读取点云文件
pcd = o3d.io.read_point_cloud("data/save_cloud1_10.pcd")

# 创建坐标轴
axis = o3d.geometry.TriangleMesh.create_coordinate_frame(size=1.0, origin=[0, 0, 0])

# 创建可视化窗口
vis = o3d.visualization.Visualizer()
vis.create_window()

# 添加点云和坐标轴到可视化窗口
vis.add_geometry(pcd)
vis.add_geometry(axis)

# 运行可视化
vis.run()
vis.destroy_window()
